module zgain (
  din,	// Digital Input
  dout	// Digital Output
  );
  
parameter n = 8;	// Width of Digital Input and Output
parameter gain = 1;	// Gain Parameter

input [n-1:0]  din;
output [2*n-1:0] dout;

wire signed [n-1:0] din;
reg signed [2*n-1:0] dout;

always @ (din)
begin
	dout <= din * gain;
end

endmodule